<template>
  page2  
  
  <el-button @click="handleClick(1)">弹</el-button>
  <el-button @click="handleClick(2)">弹2</el-button>
  <el-dialog v-model="showDialog" title="弹框">    
    <router-view></router-view>
  </el-dialog>
</template>

<script>
export default {
  methods:{
    handleClick(i){      
      if(i==1){
        this.$router.push("/page2/dialog")
      }
      else if(i==2){
        this.$router.push("/page2/dialog2")
      }
      this.showDialog=true
    }
  },
  data(){
    return {
      showDialog:false
    }
  }
}
</script>

<style>

</style>